Skip to content

Conversation

@gnprice
Copy link
Member

@gnprice gnprice commented Jul 29, 2025

This is a small followup after #1729, cleaning up the KaTeX tests a bit more after splitting them from the other content tests.

Commit messages

cc0fb86 katex test [nfc]: Name the KatexExample statics without redundancy

The names beginning "mathBlockKatex…" were appropriate when the
namespace these lived on was the more general ContentExample.
But that prefix doesn't add anything when they're on KatexExample.

(The fact they're in math blocks instead of inline math spans isn't
part of the point of any of these examples.)

Similarly the descriptions can be shortened; and then in some cases
lengthened a bit again to say more about what each example is meant
to exercise or illustrate.

70b12af katex test [nfc]: Cut redundant group on KaTeX widget tests

This whole test file will be about KatexWidget and its associated
private widgets, whether reached via MathBlock or via InlineContent.
So a MathBlock group is no longer helpful, unlike when these tests
lived in content_test.dart.

@gnprice gnprice requested a review from rajveermalviya July 29, 2025 20:13
@gnprice gnprice added the maintainer review PR ready for review by Zulip maintainers label Jul 29, 2025
Copy link
Member

@rajveermalviya rajveermalviya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this cleanup @gnprice! LGTM, Please merge at will.

gnprice added 2 commits July 30, 2025 12:04
The names beginning "mathBlockKatex…" were appropriate when the
namespace these lived on was the more general ContentExample.
But that prefix doesn't add anything when they're on KatexExample.

(The fact they're in math blocks instead of inline math spans isn't
part of the point of any of these examples.)

Similarly the descriptions can be shortened; and then in some cases
lengthened a bit again to say more about what each example is meant
to exercise or illustrate.
This whole test file will be about KatexWidget and its associated
private widgets, whether reached via MathBlock or via InlineContent.
So a MathBlock group is no longer helpful, unlike when these tests
lived in content_test.dart.
@gnprice gnprice merged commit 79edb40 into zulip:main Jul 30, 2025
1 check passed
@gnprice gnprice deleted the pr-katex-tests branch July 30, 2025 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer review PR ready for review by Zulip maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants